package think.in.spring.bean.factory.impl;

import org.springframework.beans.factory.FactoryBean;
import think.in.spring.ioc.overview.domain.User;

public class UserFactoryBean implements FactoryBean<User> {
    @Override
    public User getObject() {
        User u = new User();
        u.setName("FactoryBean方法");
        return u;
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
